﻿#pragma once


// CPage3

class CPage3 : public CWnd
{
	DECLARE_DYNAMIC(CPage3)

public:
	CPage3();
	virtual ~CPage3();

public:
	void SetCurrentText(CString text);
	void SetContentText(PTASKPROGRESS prc);
	void InsertSecBaseLine(int SecType, sqlite3* pSql,TCHAR*Tname, TCHAR* Tref, TCHAR*Treal, TCHAR*Tcomp);
public:
	static CTOOLBOX4View * m_pView;
	CPageShare * m_pShare;
	CFont m_font;

	HANDLE m_TimerThread; 
	UINT_PTR m_TimerID;

	HANDLE m_Timer2Thread; 
	UINT_PTR m_Timer2ID;

	static HANDLE m_hSoftWare_all;
	static HANDLE m_hSecBaseLine_All;

	// 综合分析进度信息定时器
	HANDLE m_hTimer31Thread;
	UINT_PTR m_Timer31ID;

	// 病毒检测 定时器
	HANDLE m_hTimerVirusThread;
	UINT_PTR m_TimerVIrusID;

	CDisposeResult *m_pResult;

	std::vector<std::map<std::string, CString>> nBRes;

	static BOOL m_bIsWEBFinish;
	static BOOL m_bIsNetWorkFinish;
	static BOOL m_bIsMemoryFinish;
	static BOOL m_bIsHardwareFinish;
	static BOOL m_bIsWirelessFinish;
	static BOOL m_bIsHostLogFinish;
	static BOOL m_bIsAnalyzeFinish;

	static BOOL m_bIsFileOperationFinish;
	static BOOL m_bIsInterFinish;
	static BOOL m_bIsPortFinish;
	static BOOL m_bIsProcessFinish;
	static BOOL m_bIsServiceFinish;
	static BOOL m_bIsSoftWareFinish;
	static BOOL m_bIsAccountSecFinish;
	static BOOL m_bIsFileShareFinish;
	static BOOL m_bIsUSBFinish;
	static BOOL m_bIsARPFinish;
	static BOOL m_bIsUSNFinish;
	static BOOL m_bIsDNSFinish;
	static BOOL m_bIsLogPolicyFinish;
	static BOOL m_bIsPathInfoFinish;
	static BOOL m_bIsFileInfoFinish;
	static BOOL m_bIsHostBaseInfoFinish;
	static BOOL m_bIsStartUpInfoFinish;
	static BOOL m_bIsTaskInfoFinish;
	static BOOL m_bIsDBLogFinish;
	static BOOL m_bIsClipboardFinish;
	static unsigned long m_ulHostLogNum;		// 统计 主机日志 条数
	static unsigned long m_ulSysPacthNum;		// 统计 系统补丁 	
	static unsigned long m_ulFileTraceNum;		// 统计 文件操作痕迹
	static unsigned long m_ulNetTraceNum;		// 统计 联网痕迹
	static unsigned long m_ulPortNum;			// 统计 网络连接
	static unsigned long m_ulProcessNum;		// 统计 进程
	static unsigned long m_ulServiceNum;		// 统计 服务
	static unsigned long m_ulSoftWareNum;		// 统计 安装软件
	static unsigned long m_ulSecBaseLineNum;	// 统计 安全基线
	static unsigned long m_ulFileShareNum;		// 统计 文件共享
	static unsigned long m_ulUSBTraceNum;		// 统计 USB插拔记录
	static unsigned long m_ulARPNum;			//统计arp
	static unsigned long m_ulUSNNum;			//统计USN
	static unsigned long m_ulDNSNum;			//统计DNS
	static unsigned long m_ulPathInfoNum;			//统计系统补丁
	static unsigned long m_ulFileInfoNum;			//统计磁盘文件
	CImage m_imgAllIcon;
	int m_nAllIconWidth;
	int m_nALlIconHeight;

	CImage m_imgAllLabel;
	int m_nAllLabelWidth;
	int m_nAllLabelHeight;

	CStatic *m_stcExplain;

	static BOOL m_bIsRet;     // 是否显示返回按钮
	static CPoint m_LBDpoint;
	static CPoint m_LBUpoint;

	

	static std::vector<POSAUTHSECBSA> m_svAuthSec;			// 授权安全
	static std::vector<POSACCOUNTSECBSA> m_svAccountSec;		// 账号安全
	static std::vector<POSSERVICESECBSA> m_svSerivceSec;		// 服务访问安全
	static std::vector<POSPASSWORDBSA> m_svPassWdSec;		// 口令安全
	static std::vector<POSNETACCCTRLBSA> m_svNetSec;			// 网络访问安全
	static std::vector<POSFILEACCCTRLSECBSA> m_svFileSec;	// 文件访问安全

protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnPaint();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
protected:
	afx_msg LRESULT OnRetprogress(WPARAM wParam, LPARAM lParam);
	afx_msg LRESULT OnRetresult(WPARAM wParam, LPARAM lParam);
public:
	afx_msg void OnTimer(UINT_PTR nIDEvent);
};


